<div class="Item hr">
    <div class="current">留言信息</div>
    <div class="fr"><a href="{:U('index')}" class="btn">返回留言列表</a></div>
</div>
<form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
    <tr>
        <th width="100">留言标题：</th>
        <td><input type="text" class="input" value="{$title}" name="reply[title]" /></td>
    </tr>
    <tr>
        <th width="100">留言内容：</th>
        <td><textarea class="jq_watermark" id="reply_content" rows="5" cols="70" name="reply[content]"  placeholder="留言内容">{$content}</textarea></td>
    </tr>
    {$addfields|PrintAutoFieldsEdit=###,$addRow,'reply'}
    <tr>
        <th width="100">留言人IP：</th>
        <td>{$userip}</td>
    </tr>
    <tr>
        <th width="100">留言时间：</th>
        <td>{$subtime|timeTostr}</td>
    </tr>
    <tr>
        <th width="100">审核：</th>
        <td>
            <label><input type="radio" checked="chekced" value="1" name="reply[status]"> 通过</label>
            <label><input type="radio" value="0" name="reply[status]"> 不通过</label>
        </td>
    </tr>
</table>

<div class="Item hr">
    <div class="current">回复留言</div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
    <tbody>
        <tr>
            <th width="100">回复内容：</th>
            <td><textarea class="jq_watermark" id="reply_content" rows="5" cols="70" name="reply[reply_content]"  placeholder="回复内容">{$reply_content}</textarea> </td>
        </tr>
    </tbody>
</table>
<input type="hidden" value="{$id}" name="reply[id]" />
</form>
<div class="commonBtnArea" >
    <button class="btn submit">提交回复</button>
</div>

<script type="text/javascript">
$(function(){
	$(".submit").click(function(){
		commonAjaxSubmit("{:U('reply')}");
	});
});
</script>
